package vehicleRentSys;

/**
 * 汽车类（父类）
 */
public abstract class MotoVehicle {
	private String brand; // 品牌
	private String vehicleID; // 车牌
	private int perRent; // 日租金

	public MotoVehicle() {

	}

	public MotoVehicle(String brand, String vehicleID, int perRent) {
		this.brand = brand;
		this.vehicleID = vehicleID;
		this.perRent = perRent;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getVehicleID() {
		return vehicleID;
	}

	public void setVehicleID(String vehicleID) {
		this.vehicleID = vehicleID;
	}

	public int getPerRent() {
		return perRent;
	}

	public void setPerRent(int perRent) {
		this.perRent = perRent;
	}

	// 计算租金：根据用户租用的天数（days）计算租金
	public abstract double calcRent(int days);

}
